import Vue from "vue";
import App from "./App";

// vuex
// import store from "./common/store/index.js";
import VueCompositionAPI from "@vue/composition-api";
import { createPinia, PiniaVuePlugin } from "pinia";
// 引入全局uView
import uView from "@/uni_modules/uview-ui";
//uview  配置项
import Uvc from "./utils/uViewConfig.js";
// import customCalender from "./components/custom-calender/index.vue";

Vue.config.productionTip = false;
App.mpType = "app";
// Vue.component("custom-calender", customCalender);

Vue.mixin({
  ...require("./utils/mpShare.js"),
  computed: {
    imageUrl() {
      // return "http://127.0.0.1:8088"; // 图片地址头部
      return  "http://erp.pos08.com"; // 图片地址头部
      // return "http:/"; // 图片地址头部
    },
  },
});
Vue.use(uView);
Vue.use(PiniaVuePlugin);
Vue.use(VueCompositionAPI);
Uvc.uVConfig();
const pinia = createPinia();
Vue.use(pinia);
const app = new Vue({
  // store,
  ...App,
});
app.$mount();
